#include <sys/types.h>
       #include <sys/stat.h>
       #include <fcntl.h>

#include <sys/ioctl.h>
#include <scsi/scsi.h>

int main()
{
    int fd = open("/dev/sda",O_RDONLY);

    char value[1024];

    int* p=&value;
    *p = 1024;

    int ret = ioctl(SCSI_IOCTL_PROBE_HOST, p, &value);

    printf("%s\n",&value);
    return 0;    
}
